<?php

/**
 * land short summary.
 *
 * land description.
 *
 * @version 1.0
 * @author GALAXY
 */
class Land extends Sys_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->load->Model('Userlogin_model');
        $this->load->library('form_validation');
        $this->load->library('ajaxMsgModel');
        $this->load->database();
    }

    public function landlist()
    {
        $this->ajaxmsgmodel->Type='1';
        $this->Ajax_Check($this->ajaxmsgmodel);

        $cupge=$this->input->get('page');
        $cupge=empty($cupge) || $cupge=="0"?1:$cupge;
        $one=$this->Userlogin_model->get_page($cupge,10,"a.*,u.user_account","user_login","order by user_login_id desc","user_login_id","","INNER JOIN `user` u on u.user_id=a.user_id");
        $this->load->library('page');
        $p=new Page();
        $data['user_login_List']=arrayToObject($one['objlist']);
        $p->init($one['count'][0]->_count,5,$cupge,10,site_url('admin/land/landlist'));
        $data['links']=$p->showPages(1);
        $this->load->view('Admin/land/landlist.html',$data);
    }
}